package com.aigou.admin.aigouspringboot.mapper;

import com.aigou.admin.aigouspringboot.entity.Product;
import com.aigou.admin.aigouspringboot.entity.dto.ProductQueryDTO;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(String id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectAll();

    List<Product> selectAllByProductType();

    List<Product> selectAllByProductTypeFuShi();

    List<Product> selectAllByProductTypeMeiZhuang();

    List<Product> selectAllByProductTypeBook();

    List<Product> selectSalesByCondition(ProductQueryDTO productQueryDTO);

    List<Product> selectProductByProductTypeID(String productTypeID);

    List<Product> selectByTime();

}